// SelectLessonView.h : interface of the CSelectLessonView class
#include "EditInformationSheet.h"
#include "ViewInformationSheet.h"
#include "SelectLessonDoc.h"
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SELECTLESSONVIEW_H__4B6269AD_181C_11D6_8D1A_8BB331DC8071__INCLUDED_)
#define AFX_SELECTLESSONVIEW_H__4B6269AD_181C_11D6_8D1A_8BB331DC8071__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_USERAPPLY WM_USER + 5
//extern CFormView* g_pView;
//extern CView* g_pView;


class CSelectLessonView : public CFormView
{
protected: // create from serialization only
	CSelectLessonView();
	DECLARE_DYNCREATE(CSelectLessonView)

public:
	//{{AFX_DATA(CSelectLessonView)
	enum{ IDD = IDD_SELECTLESSON_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CSelectLessonDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSelectLessonView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSelectLessonView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSelectLessonView)
	afx_msg void OnEdit();
	afx_msg void OnView();
	afx_msg void OnSelectLesson();
	//}}AFX_MSG
//	afx_msg LRESULT OnUserApply(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

private:
//	void Format(CHARFORMAT &cf);
//	BOOL m_bDefault; // TRUE default format, FALSE selection
	CEditInformationSheet m_shEdit;
	CViewInformationSheet m_shView;
	
};

#ifndef _DEBUG  // debug version in SelectLessonView.cpp
inline CSelectLessonDoc* CSelectLessonView::GetDocument()
   { return (CSelectLessonDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SELECTLESSONVIEW_H__4B6269AD_181C_11D6_8D1A_8BB331DC8071__INCLUDED_)
